package com.gxa.shop.service.prodect;

import com.gxa.shop.bean.dto.ProductQueryPage;
import com.gxa.shop.bean.pojo.Product;
import com.gxa.shop.bean.vo.ProductOption;
import com.gxa.shop.bean.vo.ProductVo;

import java.util.List;

/**
 * com.gxa.shop.bean.service
 * User: zjy
 * Date: 2024/12/19 15:30
 * motto:   逆水行舟不进则退
 * Description:
 * Version: V1.0
 */
public interface ProductService {
    Product queryById(Integer productId);

    boolean insert(Product product);

    boolean update(Product product);

    boolean deleteById(Integer productId);

    List<ProductOption> findByPage(ProductQueryPage productQueryPage);

    Long findByTotal(ProductQueryPage productQueryPage);

    List<ProductOption> findAllList();

    List<ProductVo> queryByCategoryId(Integer categoryId);

    ProductVo queryByProductId(String productId);

    List<ProductVo> findByName(String name);
}
